//
//  WXPKPrinterEffectView.h
//  打字效果
//
//  Created by tianlong on 2018/3/30.
//  Copyright © 2018年 tianlong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^WXPKTextViewBlock)(void);

@interface WXPKPrinterEffectView : UITextView
@property (copy, nonatomic) WXPKTextViewBlock animationCompletion;
@property (copy, nonatomic) NSString *animteText;
/** 开启速度随机 */
@property (assign, nonatomic) BOOL randomSpeed;
/**
 打字效果用此方法创建
 @param yesOrNo 是否开启打字效果设置文字
 @param interval 打字的时间间隔，值越小打字的速度越快
 */
- (instancetype)initWithUsingAnimate:(BOOL)yesOrNo interval:(NSTimeInterval)interval;
- (void)resumeTextAnimate;
- (void)pauseTextAnimate;
- (void)stopTextAnimate;
@end
